package com.netflix.eureka.util.batcher;

import java.util.List;

public interface TaskProcessor<T> {

    enum ProcessingResult {
        Success, Congestion, TransientError, PermanentError
    }

    ProcessingResult process(T task);

    ProcessingResult process(List<T> tasks);
}
